<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <link type="text/css" rel="stylesheet" href="statics/css/style.css" />
    <title>修改密码</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link type="text/css" rel="stylesheet" href="statics/css/style.css" />
	<script type="text/javascript" src="/EasyBuy/statics/js/jquery-1.11.1.min_044d0927.js"></script>
	<script type="text/javascript" src="/EasyBuy/statics/js/jquery.bxslider_e88acd1b.js"></script>
    
    <script type="text/javascript" src="/EasyBuy/statics/js/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="/EasyBuy/statics/js/menu.js"></script>    
        
	<script type="text/javascript" src="/EasyBuy/statics/js/select.js"></script>
    
	<script type="text/javascript" src="/EasyBuy/statics/js/lrscroll.js"></script>
    
    <script type="text/javascript" src="/EasyBuy/statics/js/iban.js"></script>
    <script type="text/javascript" src="/EasyBuy/statics/js/fban.js"></script>
    <script type="text/javascript" src="/EasyBuy/statics/js/f_ban.js"></script>
    <script type="text/javascript" src="/EasyBuy/statics/js/mban.js"></script>
    <script type="text/javascript" src="/EasyBuy/statics/js/bban.js"></script>
    <script type="text/javascript" src="/EasyBuy/statics/js/hban.js"></script>
    <script type="text/javascript" src="/EasyBuy/statics/js/tban.js"></script>
    
	<script type="text/javascript" src="/EasyBuy/statics/js/lrscroll_1.js"></script>
<style type="text/css">
	.fls{
		margin-left:70px;
		font-size: 24px;
	}
	.frz{
		float:right;
		margin-right:70px;
		font-size:16px;
		color:#ff4e00
	}
	#mp_topright{
		margin-top:35px;
	}
	#code{
		font-family:Arial;
		font-style:italic;
		font-weight:bold;
		border:0;
		letter-spacing:10px;
		color:blue;
		height: 35px;
		outline：none;	
		margin-left: -60px;
		width: 80px;
		height: 40px;
	}
	.email_css{
		background: url(/EasyBuy/statics/images/i_u.png) no-repeat 280px center;
		width:318px;
		height:38px; 
		line-height:38px\9;
		margin:40px 85px 15px 70px;
		border: 1px solid #cccccc;
	}
	.code_css{
		width:200px;
		height:38px; 
		line-height:38px\9;
		margin:15px 85px 15px 70px;
	}
	.nomail{
		margin-left:70px;
		margin-top:10px;
	}
	.log_btn{
		margin-left:70px;
		line-height:42px\9;
		margin-top:30px;
	}
</style>
  </head>
  
  <body>

<div class="soubg">
	<div class="sou">
        <span class="fr">
        	<span class="fl">你好，请<a href="Login.html">登录</a>&nbsp; <a href="pre/Regist.jsp" style="color:#ff4e00;">免费注册</a>&nbsp; </span>
            <span class="fl">|&nbsp;关注我们：</span>
            <span class="s_sh"><a href="#" class="sh1">新浪</a><a href="#" class="sh2">微信</a></span>
            <span class="fr">|&nbsp;<a href="#">手机版&nbsp;<img src="/EasyBuy/statics/images/s_tel.png" align="absmiddle" /></a></span>
        </span>
    </div>
</div>
<!--End Header End--> 
<!--Begin Login Begin-->
<div class="log_bg">	
    <div class="top">
        <div class="logo"><a href="Index.html"><img src="/EasyBuy/statics/images/logo.png" /></a></div>
    </div>
	<div class="login">
    	<div class="log_img"><img src="/EasyBuy/statics/images/l_img.png" width="611" height="425" /></div>
		<div class="log_c">
        	<div id="mp_topright"><span class="fls"> 发送重置密码邮件</span><a href="/EasyBuy/pre/Regist.jsp"><span class="frz">立即注册</span></a></div>
        	<div>
        		<input class="email_css" type="text" id="email" placeholder="  请输入email"  ><br/>
        		<input class="code_css" type="text" placeholder="  请输入验证码" value="">
        		<input type = "button" id="code"/>
        	</div>
        	<a><div class="nomail">收不到邮件?</div></a>
        	<div>
        		<input type="button" value="发送重置邮件" class="log_btn" />
        	</div>
        </div>
    </div>
</div>
<!--End Login End--> 
<!--Begin Footer Begin-->
<div class="btmbg">
    <div class="btm">
        备案/许可证编号：蜀ICP备12009302号-1-www.dingguagua.com   Copyright © 2015-2018 尤洪商城网 All Rights Reserved. 复制必究 , Technical Support: Dgg Group <br />
        <img src="/EasyBuy/statics/images/b_1.gif" width="98" height="33" /><img src="/EasyBuy/statics/images/b_2.gif" width="98" height="33" /><img src="/EasyBuy/statics/images/b_3.gif" width="98" height="33" /><img src="/EasyBuy/statics/images/b_4.gif" width="98" height="33" /><img src="/EasyBuy/statics/images/b_5.gif" width="98" height="33" /><img src="/EasyBuy/statics/images/b_6.gif" width="98" height="33" />
    </div>    	
</div>
<!--End Footer End -->    

<script type="text/javascript" src="/EasyBuy/statics/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$(".log_btn").click(function(){
			$.get("/EasyBuy/LoginAndregisterServlet","opr=seleMail&email="+$("#email").val(),function(data){
				//$.get("/EasyBuy/LoginAndregisterServlet","opr=xgpwd&id="+data+"&email="+$("#email").val(),function(data1){
					alert(data);
					
				//});
			});
			
		});
				//点击验证码刷新事件
				$("#code").click(function(){
					createCode();
					$("#code").css({"outline":"none"});
				});
				//鼠标移上变手
				$("#code").mouseover(function(){
					$(this).css("cursor","pointer");
				});
				createCode();//验证码方法
				
				var code ; //在全局定义验证码
				//产生验证码
				function createCode(){
					 code = ""; 
					 var codeLength = 4;//验证码的长度
					 var checkCode = document.getElementById("code"); 
					 var random = new Array(0,1,2,3,4,5,6,7,8,9,'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R',
					 'S','T','U','V','W','X','Y','Z');//随机数
					 for(var i = 0; i < codeLength; i++) {//循环操作
						var index = Math.floor(Math.random()*36);//取得随机数的索引（0~35）
						code += random[index];//根据索引取得随机数加到code上
					}
					checkCode.value = code;//把code值赋给验证码
				};
		$(".l_user").blur(function(){
			var name = $(".l_user").val();
			$("._name").html("");
			$.get("/EasyBuy/LoginAndregisterServlet","opr=logname&naem="+name,function(data){
				if(data != "y"){
					$("body").append("<div class='_name' style='color:red; position: absolute; top: 432px;left: 1024px;font-size: 15px;'>请输入正确用户名</div>");
				}
			});
		});
		
		
	});
</script>
  </body>
</html>
